package com.hospital.yang.fchua.service.impl;

import com.hospital.yang.fchua.dao.FrontdeskMoneyMapper;
import com.hospital.yang.fchua.entity.FrontdeskMoney;
import com.hospital.yang.fchua.service.FrontdeskMoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description：
 * @author：xyj
 * @date：2021/9/22 21:03
 * @versions：v1.0
 */
@Service
public class FrontdeskMoneyServiceImpl implements FrontdeskMoneyService {
    @Autowired
    private FrontdeskMoneyMapper frontdeskMoneyMapper;

    /**
     * 插入药单
     *
     * @param frontdeskMoney
     * @return
     */
    @Override
    public boolean insert(FrontdeskMoney frontdeskMoney) {
        int insert = frontdeskMoneyMapper.insert(frontdeskMoney);
        if (insert == 1)
            return true;
        return false;
    }
}
